﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:appControls="clr-namespace:AdventureWorksLT.Controls" mc:Ignorable="d">
	<Style x:Key="BusyIndicatorContentControl" TargetType="ContentControl">
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ContentControl">
					<ContentPresenter 
						Cursor="{TemplateBinding Cursor}" 
						ContentTemplate="{TemplateBinding ContentTemplate}" 
						Content="{TemplateBinding Content}" 
						HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
						VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
						Margin="{TemplateBinding Padding}" 
						ScrollViewer.HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" 
						ScrollViewer.VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

    <Style TargetType="appControls:BusyIndicator" x:Key="busyIndicatorDefaultStyle">
        <Setter Property="BusyContent" Value="   Loading..."/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="OverlayStyle">
            <Setter.Value>
                <Style TargetType="Rectangle">
                    <Setter Property="Fill" Value="White"/>
                    <Setter Property="Opacity" Value="0.1"/>
                    <!--<Setter Property="CornerRadius" Value="5"/>-->
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ProgressBarStyle">
            <Setter.Value>
                <Style TargetType="ProgressBar">
                    <Setter Property="IsIndeterminate" Value="True"/>
                    <Setter Property="Height" Value="15"/>
                    <Setter Property="Margin" Value="8,0,8,8"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="DisplayAfter" Value="00:00:00.0"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="appControls:BusyIndicator">
                    <Grid d:DesignWidth="290" d:DesignHeight="240">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="VisibilityStates">
                                <VisualState x:Name="Hidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="busycontent" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="overlay" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Visible">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="busycontent" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="overlay" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BusyStatusStates">
                                <VisualState x:Name="Idle">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="content" Storyboard.TargetProperty="(Control.IsEnabled)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Busy">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="content" Storyboard.TargetProperty="(Control.IsEnabled)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>False</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="overlay">
                                			<DiscreteObjectKeyFrame KeyTime="0">
                                				<DiscreteObjectKeyFrame.Value>
                                					<Visibility>Visible</Visibility>
                                				</DiscreteObjectKeyFrame.Value>
                                			</DiscreteObjectKeyFrame>
                                		</ObjectAnimationUsingKeyFrames>
                                		<ColorAnimation Duration="0" To="#7E000000" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="overlay" d:IsOptimized="True"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl
                            x:Name="content"
                            Content="{TemplateBinding Content}"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                            ScrollViewer.HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" 
                            ScrollViewer.VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" Style="{StaticResource BusyIndicatorContentControl}"/>
                        <Rectangle
                            x:Name="overlay"
                            Style="{TemplateBinding OverlayStyle}" 
							Fill="Black" 
							RadiusX="5" 
							RadiusY="5"/>
                        <ContentPresenter
                            x:Name="busycontent">
                            <Grid
                                HorizontalAlignment="Center"
                                VerticalAlignment="Top">
                                <Border >
                                <Border
                                        CornerRadius="5"
                                        Margin="1">
                                    	<Grid MinWidth="150" Margin="10">
                                            <Grid.RowDefinitions>
                                    			<RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                            </Grid.RowDefinitions>
                                            <ContentPresenter
                                                Content="{TemplateBinding BusyContent}"
                                                ContentTemplate="{TemplateBinding BusyContentTemplate}"
                                    			Margin="8" Grid.Row="1" HorizontalAlignment="Center"/>
                                    		<Canvas
                                    			x:Name="Scene" 
                                    			Width="20" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,0,0,0" >
                                    			<Canvas.Resources>
                                    				<Storyboard x:Name="main" RepeatBehavior="Forever">
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.7000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.3000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.7000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.3000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.5000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.5000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.3000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.3000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.9000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.3000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.3000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.9000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.5000000" Value="23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.5000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="0"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-3.8500000000000005"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="-7.7000000000000011"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="-3.8500000000000005"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.7000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="-7.7000000000000011"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.5933333333333337"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="3.1866666666666674"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1.5933333333333337"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.7000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="3.1866666666666674"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path6" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-11.55"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.3000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="-15.400000000000002"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="-11.55"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.9000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="-15.400000000000002"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path6" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-4.78"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.3000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="-6.373333333333334"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="-4.78"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.8000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.9000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="-6.373333333333334"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path7" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-19.25"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="-23.1"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="-19.25"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="-23.1"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path7" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-7.9666666666666668"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="-9.56"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="-7.9666666666666668"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
                                    						<SplineDoubleKeyFrame KeyTime="00:00:03.1000000" Value="-9.56"/>
                                    					</DoubleAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.6000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.7000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.3000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.9000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.8000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.9000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.1000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.1000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.7000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.3000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.2000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.3000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.9000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path4" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00.8000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.9000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.4000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:03.1000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path5" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.1000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.6000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.7000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.6000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.7000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:03.1000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path6" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.2000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.3000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.6000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.9000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.8000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.9000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:03.1000000" Value="#7F909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    					<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path7" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    						<SplineColorKeyFrame KeyTime="00:00:00" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.4000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:01.6000000" Value="#E5909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:02.1000000" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:03" Value="#7F909091"/>
                                    						<SplineColorKeyFrame KeyTime="00:00:03.1000000" Value="#E5909091"/>
                                    					</ColorAnimationUsingKeyFrames>
                                    				</Storyboard>

                                    			</Canvas.Resources>
                                    			<Canvas.RenderTransform>
                                    				<TransformGroup>
                                    					<ScaleTransform ScaleX="0.2" ScaleY="0.2"/>
                                    					<SkewTransform AngleX="0" AngleY="0"/>
                                    					<RotateTransform Angle="0"/>
                                    					<TranslateTransform X="0" Y="0"/>
                                    				</TransformGroup>
                                    			</Canvas.RenderTransform>
                                    			<i:Interaction.Triggers>
                                    				<i:EventTrigger>
                                    					<!--<ei:ControlStoryboardAction Storyboard="{StaticResource main}"/>-->
                                    				</i:EventTrigger>
                                    			</i:Interaction.Triggers>
                                    			<Path x:Name="path" Width="63.737" Height="61.865" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="104.062" Canvas.Top="0" Data="M1.4210857E-14,0 C24.595594,0.91183302 46.907924,10.731561 63.736933,26.404211 L28.275785,61.865356 C20.623671,55.108245 10.794524,50.836604 1.4210857E-14,49.999995 L1.4210857E-14,0 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path1" Width="61.87" Height="63.737" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="138.039" Canvas.Top="31.901" Data="M35.460662,1.8308175E-06 C51.135328,16.828314 60.956922,39.140697 61.869611,63.737187 L11.874498,63.737187 C11.034624,52.941654 6.7599051,43.112026 2.7922216E-06,35.460658 L35.460662,1.8308175E-06 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path2" Width="61.87" Height="63.737" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="137.997" Canvas.Top="103.951" Data="M11.874513,-9.9475985E-14 L61.869626,-9.9475985E-14 C60.956952,24.596497 51.135359,46.908907 35.460662,63.737215 L2.792223E-06,28.276551 C6.7599051,20.625184 11.034639,10.79554 11.874513,-9.9475985E-14 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path Width="63.737" Height="61.865" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="104.62" Canvas.Top="137.683" Data="M28.27577,5.5145169E-06 L63.736917,35.461158 C46.907909,51.133796 24.595594,60.953514 1.4210857E-14,61.865349 L1.4210857E-14,11.865347 C10.794517,11.028738 20.623655,6.7571011 28.27577,5.5145169E-06 z"
                                    				x:Name="path3" RenderTransformOrigin="0.5,0.5" Opacity="0.8"
	>
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path4" Width="63.737" Height="61.865" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="32.013" Canvas.Top="138.056" Data="M35.461156,5.5145165E-06 C43.113271,6.7571163 52.942409,11.028753 63.736934,11.865362 L63.736934,61.865364 C39.141332,60.953529 16.829006,51.133812 9.1238666E-07,35.461173 L35.461156,5.5145165E-06 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path5" Width="61.87" Height="63.737" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="0" Canvas.Top="103.951" Data="M0,-9.9475985E-14 L49.995109,-9.9475985E-14 C50.834979,10.795533 55.109713,20.625176 61.869619,28.276551 L26.408958,63.7372 C10.734273,46.908891 0.91268138,24.596497 0,-9.9475985E-14 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path6" Width="61.87" Height="63.737" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="0" Canvas.Top="31.901" Data="M26.408948,1.8308175E-06 L61.869608,35.460666 C55.10971,43.112026 50.834979,52.941662 49.995109,63.737187 L0,63.737187 C0.91268478,39.140697 10.734273,16.828311 26.408948,1.8308175E-06 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    			<Path x:Name="path7" Width="63.737" Height="61.865" RenderTransformOrigin="0.5,0.5" Fill="#7F909091" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Canvas.Left="32.013" Canvas.Top="0" Data="M63.736945,0 L63.736945,49.999995 C52.942421,50.836604 43.113267,55.108245 35.461153,61.865363 L9.123877E-07,26.404205 C16.829006,10.73156 39.141343,0.91183272 63.736945,0 z" Opacity="0.8">
                                    				<Path.RenderTransform>
                                    					<TransformGroup>
                                    						<ScaleTransform ScaleX="1" ScaleY="1"/>
                                    						<SkewTransform AngleX="0" AngleY="0"/>
                                    						<RotateTransform Angle="0"/>
                                    						<TranslateTransform X="0" Y="0"/>
                                    					</TransformGroup>
                                    				</Path.RenderTransform>
                                    			</Path>
                                    		</Canvas>
                                            <ProgressBar
                                                Grid.Row="1"
                                    			Style="{TemplateBinding ProgressBarStyle}" Visibility="Collapsed"/>
                                        </Grid>
                                    </Border>
                                </Border>
                            </Grid>
                        </ContentPresenter>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>